import request from '~/utils/request'

export function search(query) {
  return request({
    url: `/goods/search/searchGoodsByName/${query.name}/`,
    method: 'get',
    params: { page: query.page, size: query.size }
  })
}

export function getGoodsByGoodsId(goodsId) {
  return request({
    url: '/goods/search/getGoodById/' + goodsId,
    method: 'get'
  })
}

